package com.catchu.pattern.creational.原型模式;

import java.util.ArrayList;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;

/**
 * 客户端测试类
 */
public class Client {
    public static void main(String[] args) throws CloneNotSupportedException{
        List<Order> srcOrders = new ArrayList<>();
        // 原始采购单
        PurchaseOrder srcPurchaseOrder = new PurchaseOrder("c0f55f62-4979-4e87-8cd9-1c556894e2bb",new Date(),"张三","销售单","婴儿口水巾",400);
        srcOrders.add(srcPurchaseOrder);
        // 原始销售单
        SalesOrder srcSalesOrder = new SalesOrder("12fb4958-bee2-4c89-8cf8-edea1177b21f",new Date(),"张三","采购单","婴儿车",1,1280.0f);
        srcOrders.add(srcSalesOrder);
        OrderManage orderManage = new OrderManage();
        orderManage.createNewOrder(srcOrders);
    }
}
